<template>
    <div>   
        shouyye
        {{isLogin}}
    </div>
</template>

<script>
import {mapState,mapMutations} from "vuex"
export default {
   mounted() {
       let islogin = window.localStorage.getItem("islogin")
       console.log(islogin)
       this.setLogin(islogin)
   },
   methods:{
       ...mapMutations({
           setLogin:"login/setLogin"
       })
   },
   computed:{
       ...mapState({
           isLogin:state=>state.login.isLogin
       })
   }
}
</script>

<style>

</style>